<?php
//这个文件实现BASE64的编码和解码

if($_POST['ming']){
	$ming = $_POST['ming'];
	$mi = base64_encode($ming);
}

?>
<html>
	<head>
		<title>base64编码解码</title>
<style>
.l{
	float: left;
	width: 48%;
}
.r{
	float: left;
	width: 48%;
}
.form-l{
	width: 100%;
	height: 90%;
}
.form-r{
	width: 100%;
	height: 90%;
}
</style>
	</head>
<body>

<div class="body">
	
	<div class="l">
		<form action="#" method="post">
			<input type="submit" value="提交"/>
			<textarea name="ming" rows="" cols="" class="form-l"><?php echo $ming;?></textarea>
		</form>
	</div>
	
	<div class="r">
		<form action="#" method="post">
			<textarea name="mi" rows="" cols="" class="form-r"><?php echo $mi;?></textarea>
			<!--<input type="submit" value=""/>-->
		</form>
	</div>
	
</div>

</body>
</html>